home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Demos / AppMaker 2.0b3 / Demo AppMaker 2.0b3 / Examples / pre-built AMReminder / Procedural / AMReminderData.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-10-05  |  1.5 KB  |  42 lines  |  [TEXT/MMCC]

  1. /* AMReminderData.h -- application-specific data management */
  2. /* Created 01/01/95 12:01 PM by AppMaker */
  3.  
  4. /* Define the creator type and file type for your application. */
  5.  
  6. #define kSignature        'XXXX'
  7. #define kFileType        'TEXT'
  8.  
  9. /* Define any appropriate data structures for your application. */
  10. /* Add any needed fields to Global's WinInfoRec so that each window */
  11. /* can have its own set of data. Your functions will use "cur->" */
  12. /* to access the data. Here, in the interface section, you should */
  13. /* define only those types which are intended to be visible to */
  14. /* modules outside this one. Later, in the implementation section, */
  15. /* you can define additional "private" data structures. */
  16.  
  17. typedef struct {
  18.         short        data;
  19.     } YourStuff;
  20.  
  21. /*----------*/
  22. /* Open, Close, Read, Write, Init, and Dispose are called by the */
  23. /* AppMaker-generated FileM module to do application-specific file accessing. */
  24.  
  25. Boolean    OpenAppFile        (FSSpec*    fileSpec,
  26.                          short        *fRefNum);
  27. void    CloseAppFile    (short        fRefNum);
  28. void    ReadAppFile        (short        fRefNum);
  29. void    WriteAppFile    (short        fRefNum);
  30. void    InitAppData        (void);
  31. void    DisposeAppData    (void);
  32.  
  33. /* These functions are for accessing your data as logical chunks. */
  34. /* They are just models for your own accessor functions; */
  35. /* they aren't called by any AppMaker-generated code. */
  36. /* Replace them with whatever is suitable for your application. */
  37.  
  38. void    AddStuff        (YourStuff        *stuff);
  39. void    DeleteStuff        (void);
  40. Boolean    GetStuff        (void);
  41. void    PutStuff        (void);
  42.